var prmoseHttp = require('../../utils/prmoseHttp.js');
var app = getApp();
Component({
  mixins: [],
  data: {
    imgHead:'https://rhi0.xiyun.net/zhuandian/image/',
    signList:[],
    index:-1,
  },
  props: {
    loginType:{
      type:Boolean,
      value:false,
    }
  },
  didMount() {
    
  },
  didUpdate() {
    
  },
  didUnmount() {},
  methods: {
  onSignOpen(e){
    this.props.onSignOpen(e);
  },
  //日期列表
  getSignList(){
    let that = this;
    // that.props.onSignOpen();
    prmoseHttp.publicRequest(prmoseHttp.apiAddress.signList,{},1,'get').then(res=>{
      if(res.code == 200){
        res.data.forEach((obj,index)=>{
          if(obj.isCurrent == true){
            that.setData({
              index:index
            })
          }
        })
        that.setData({
          signList:res.data,
        })
      }
    })
  },
  },
});